<template>
  <div>
    <button @click="visible = !visible">我是按钮需要遮罩层组件</button>
    <EIDialod :visible="visible"></EIDialod>
  </div>
</template>

<script>
import EIDialod from "@/components/EIDialod";
export default {
  components: {
    EIDialod,
  },
  data(){
    return {visible:false}
  }
};
</script>

<style>
</style>